<?php
/* @var $this LogoAdminController */
/* @var $model Logo */
/* @var $form CActiveForm */
?>
<div class="row-fluid sortable">
	<div class="box span12">
		<div class="box-header well" data-original-title>
			<h2>
				<i class="icon-edit">
				</i>
				<?php
                    FormHelper::getFormBoxHeader('logo');
                ?>
			</h2>
			<div class="box-icon">
				<?php
                    FormHelper::getBoxIcon();	
                ?>
			</div>
		</div>
		<div class="box-content">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'logo-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
    'htmlOptions'=>array(
        'class'=>'form-horizontal',
        'enctype' => 'multipart/form-data',
    ),
)); ?>
				<fieldset>
					<div class="control-group">
						<?php echo $form->labelEx($model,'logo_image',FormHelper::setClass('labelEx')); ?>
						<div class="controls">
                    		<?php echo $form->fileField($model,'logo_image',FormHelper::setClass('fileField')); ?>
                            <span class="help-inline">
								Kích thước ảnh nên là 227 x 84 px!
							</span>
                            <?php echo $form->error($model,'logo_image'); ?>
						</div>
					</div>
                    <div class="control-group">
                        <?php echo $form->labelEx($model,'logo_status',FormHelper::setClass('labelEx')); ?>
                        <div class="controls">
                    	   	<?php echo $form->checkBox($model,'logo_status',array('class'=>'iphone-toggle','data-no-uniform'=>'true')); ?>
                    		<?php echo $form->error($model,'logo_status'); ?>
                        </div>
					</div>
					<div class="form-actions">
						<?php echo CHtml::submitButton($model->isNewRecord ? 'Thêm mới' : 'Lưu thay đổi',FormHelper::setClass('submitButton')); ?>
					</div>
				</fieldset>
			<?php $this->endWidget(); ?>
		</div>
	</div>
	<!--/span-->
</div>